package com.sanxiau.dormitory.liu.controller;


import com.sanxiau.dormitory.liu.dao.ElectricDao;
import com.sanxiau.dormitory.liu.dao.NoticeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


//页面跳转
@Controller
@RequestMapping("/liu")
public class LiuController {
    @Autowired
    NoticeDao noticeDao;

    @Autowired
    ElectricDao electricDao;

    //错误页面
    @RequestMapping("/error")
    public String error() {
      return "liu/error";
    }

    //成功页面
    @RequestMapping("/success")
    public String success() {
        return "liu/success";
    }


}
